import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '../base.entity';

@Entity({ name: 'sys_group_project' })
export default class SysGroupProject extends BaseEntity {
  @PrimaryGeneratedColumn({ type: 'bigint', name: 'group_id' })
  @ApiProperty()
  groupId: number;

  @PrimaryGeneratedColumn({ type: 'bigint', name: 'project_id' })
  @ApiProperty()
  projectId: number;

  @ApiProperty()
  @Column()
  status: number;
}
